package com.lianzai.common.utils;

/**
 * Created by ZHOUZHOU on 17/8/7.
 */
public enum ResultCode {
  SUCCESS(0, "success"),
  FAIL(-1, "系统正在维护，请稍后再试 "),
  INNER_ERROR(500, "系统繁忙，请稍后再试 "),

  /**
   * http 错误 601-699
   **/
  HTTP_METHOD_NOT_ALLOW_ERROR(601, "http请求method不对"),
  HTTP_CONNECTION_TIME_OUT(602, "http请求连接超时"),
  HTTP_READ_TIME_OUT(603, "http读超时"),
  HTTP_INNTER_CONNECTION_TIME_OUT(652, "内部系统调用连接超时"),
  HTTP_INNTER_READ_TIME_OUT(653, "内部系统调用读取超时"),
  HTTP_INNTER_SERVICE_NOT_AVAILABLE(654, "内部系统调用服务不可用"),
  HTTP_INNTER_ERROR(689, "http内部调用服务错误"),
  HTTP_ERROR(699, "http请求错误"),

  QUERY_TASK_IS_EMPTY(1300,"哎呀，未查询到任务完成信息"),


  ;


  private int code;
  private String msg;

  ResultCode(int code, String msg) {
    this.code = code;
    this.msg = msg;
  }

  public String getMsg() {
    return msg;
  }

  public int getCode() {
    return code;
  }

}
